package com.whynot.frame.spring.mybatis.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.whynot.frame.spring.mybatis.dao.UserMapper;
import com.whynot.frame.spring.mybatis.entities.User;

@Service
public class UserService {

	@Autowired
	UserMapper userMapper;
	
	public List<User> findUserByCourseId(Integer id){
		return userMapper.findUserByCourseId(id);
	}
}
